package com.stock.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.stock.entity.UserEntity;
import com.stock.vo.ResultVo;

public interface IUserService extends IService<UserEntity> {

    /**
     * 登录
     * @param user
     * @return
     */
    ResultVo login(UserEntity user);

    /**
     * 注册
     * @param user
     * @return
     */
    ResultVo register(UserEntity user);

    /**
     * 根据用户名获取用户信息
     * @param username
     * @return
     */
    UserEntity getUserInfoByUserName(String username);

    /**
     * 获取用户积分
     * @return
     */
    Integer getCurrentUserPoint();

}
